package com.demo.mapper.riot;

import com.demo.entity.riot.MatchInfo;
import com.demo.entity.riot.MatchParticipant;
import com.demo.entity.riot.MatchTeam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MatchMapper {
    List<MatchInfo> getMatchInfosByPuuid(@Param("puuid") String puuid);
    long getLatesMatchCreationTime(@Param("puuid") String puuid);
    Boolean hasMatchInfo(String matchId);
    Boolean hasPlayerMatch(@Param("puuid") String puuid, @Param("matchId") String matchId);
    void insertPlayerMatch(@Param("puuid") String puuid, @Param("matchId") String matchId, @Param("gameCreation") long gameCreation);
    void insertMatchInfo(MatchInfo matchInfo);
    MatchInfo getMatchInfo(@Param("matchId") String matchId);
}
